package Servlets;

import java.io.PrintWriter;

@javax.servlet.annotation.WebServlet(name = "RegisterServlet", urlPatterns = "/RegisterServlet")
public class RegisterServlet extends javax.servlet.http.HttpServlet {
    @Override
    protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {
        doGet(request, response);
    }

    @Override
    protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {
        request.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");
        PrintWriter writer = response.getWriter();
        String username = request.getParameter("username");
        String nickname = request.getParameter("nickname");
        String phone = request.getParameter("phone");
        String address = request.getParameter("address");
        String useremail = request.getParameter("useremail");
        String password = request.getParameter("password");
        String confirm_password = request.getParameter("confirm_password");

        writer.close();
    }
}
